package org.dey.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.dey.pojo.Library;
import org.dey.pojo.PageVo;

public interface LibraryService extends IService<Library> {
    //查
    public PageVo<Library> queryLibrary(Library library, int pageNum, int pageSize);

    //添加
    public int insertLibrary(Library library);

    //删除
    public int deleteLibrary(int id);

    //修改前先根据id查到该数据
    public Library queryLibraryByid(int id);

    //根据id修改
    public int updateLibrary(Library library);
}
